﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/SiteContent.Master" AutoEventWireup="true"
    CodeBehind="Statistics.aspx.cs" Inherits="Warehouse.Web.Inventory.Statistics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .datatable {
            width: 100%;
        }
    </style>

    <script type="text/javascript">
        function search() {
            window.location.href = "Statistics.aspx?search=serach&start=" + $("#<%= this.tbStartDate.ClientID%>").val() + "&end=" + $("#<%= this.tbEndDate.ClientID%>").val();
        }
        $(function() {
            $(".datepicker").datepicker({ dateFormat: 'yy-mm-dd' });
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="moduleheader">
        <h4>
            销售统计</h4>
        <div class="moduleheadertoolbar">
            <label>
                日期：
                <asp:TextBox ID="tbStartDate" runat="server" CssClass="datepicker"></asp:TextBox>
            </label>
            <label>
                —
                <asp:TextBox ID="tbEndDate" runat="server" CssClass="datepicker"></asp:TextBox>
            </label>
            <input type="button" class="ui-button-query" onclick="search();return false;" value="统计" />
        </div>
    </div>
    <div class="modulecontent">
        <table class="datatable">
            <tr>
                <th>
                    仓库
                </th>
                <th>
                    月份
                </th>
                <th>
                    进货金额
                </th>
                <th>
                    销售金额
                </th>
            </tr>
            <asp:Repeater ID="rptData" runat="server">
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("Name")%>
                        </td>
                        <td>
                            <%# Eval("Month")%>
                        </td>
                        <td>
                            ￥<%# Eval("PurchaseAmount","{0:N2}")%>
                        </td>
                        <td>
                            ￥<%# Eval("SalesAmount","{0:N2}")%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
</asp:Content>
